package com.bskj.common.enums;

public enum BmsUserTypeEnum {
	parking_lot_user(1, "车场物业管理员"), parking_shop_user(2, "车场商家管理员"),sys_user(3, "公司系统管理员"),property_cust(4, "物业管理员");

	private int key;
	private String value;

	private BmsUserTypeEnum(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
	public static BmsUserTypeEnum get(int key) {
		for(BmsUserTypeEnum userStatusEnum : BmsUserTypeEnum.values()) {
			if(userStatusEnum.getKey() == key) {
				return userStatusEnum;
			}
		}
		return null;
	}
}
